// src/pages/task/result/components/ActionButtons.tsx - 结果操作按钮组件
import React from 'react';
import { Button } from 'antd';
import { EyeOutlined } from '@ant-design/icons';
import { ResultItem } from '../types';

interface ActionButtonsProps {
  record: ResultItem;
  onViewDetail: (record: ResultItem) => void;
}

const ActionButtons: React.FC<ActionButtonsProps> = ({ record, onViewDetail }) => {
  return (
    <div style={{ display: 'flex', gap: '8px', justifyContent: 'center' }}>
      <Button 
        type="primary" 
        icon={<EyeOutlined />} 
        onClick={() => onViewDetail(record)}
        size="small"
      >
        详情
      </Button>
    </div>
  );
};

export default ActionButtons;